﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Clipping.Utils;
namespace ClippingMaster
{
    public class SearchEngineModel:GalaSoft.MvvmLight.ObservableObject 
    {
        public SearchEngineModel(ISearchEngine searchEngine)
        {
            this.SearchEngine = searchEngine;
        }

        private ISearchEngine _searchEngine;
        public ISearchEngine SearchEngine
        {
            get { return _searchEngine; }
            set 
            { 
                _searchEngine = value;
                RaisePropertyChanged(() => this.SearchEngine);
            }
        }

        private bool _isSelected;
        public bool IsSelected
        {
            get { return _isSelected; }
            set 
            {
                if (_isSelected == value)
                    return;
                _isSelected = value;
                RaisePropertyChanged(() => this.IsSelected);
            }
        }

    }
}
